//
//  BTBworld.h
//  my-BTB
//
//  Created by QuickSoluion on 9/7/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "SpaceManagerCocos2d.h"
#import "GameConfig.h"
#import "dataBridge.h"
#import "ParticleAnimation.h"
#import "Character.h"
@interface BTBworld :CCLayer<SpaceManagerSerializeDelegate>
{
	SpaceManagerCocos2d *_spaceManager;
	NSMutableArray	*_bombs;
	NSMutableArray	*_Missle;
	int iCountData;
	
	CCParticleSystem *emitter;
	
	//NSMutableArray *_saveStructBridge;
	CCLayer *TempGamePlayer;
}
@property (readonly)SpaceManager *_SMG;//readonly
-(id)initWithMap:(int)numberMap;
-(Character*)initEntityByClassOfworld:(Class)tempC:(CGPoint)p:(float)fScale:(BOOL)yes_noScale;
-(void)getTempGamePlayer:(CCLayer*)_Gamelayer;


//creation
- (CCNode<cpCCNodeProtocol>*) createTriangleAt:(cpVect)pt size:(int)size mass:(int)mass:(int)kBlockCollisionType;

- (cpShape*) createImageBlockAt:(cpVect)pt width:(int)w height:(int)h mass:(int)mass:(int)kBlockCollisionType:(NSString *)strName;

-(void)addThreeWallInGame;

-(void)StartSpysic;

-(void)SetupBomb:(CGPoint)P;

-(void)drawline:(cpShape *)_object;

-(void)SetupCarAt:(CGPoint)P;


-(void)initParticleSmokeAtPosition:(CGPoint)p;
-(void)initParticleFireAtPosition:(CGPoint)p;

-(void)initParticleWeather;

//-(void)setupWallbyColor:(int)_color andColition:(int)kColition  from:(cpVect)P1 to:(cpVect)P2;
-(cpShape *)setupWallbyColor:(int)_color andColition:(int)kColition  from:(cpVect)P1 to:(cpVect)P2;
-(cpShape *)createImageEntityAt:(cpVect)pos width:(int)w height:(int)h fileName:(NSString*)strName kColitionType:(int)kBlockCollisionType Mass:(int)_myMass;

-(void)drawLineWall:(cpShape *)_object:(int)_color;


-(void)settupMissle:(CGPoint)P;
@end
